import { createApp } from "vue";
import ElementPlus from "element-plus";
import "element-plus/dist/index.css";
import zhCn from 'element-plus/es/locale/lang/zh-cn'; // 引入中文语言包
import "./style.css";
import App from "./App.vue";
import router from "./router";
import * as ElementPlusIconsVue from "@element-plus/icons-vue";
import store from "./store";
import * as echarts from 'echarts'

const app = createApp(App);

app.use(ElementPlus,{
  locale: zhCn, // 引入中文语言包
});
app.use(router);
app.use(store);
// 全局挂载echarts
app.config.globalProperties.$echarts  = echarts

// 使用elements icons
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
  app.component(key, component);
}

import "virtual:windi.css";
import "./permission";
import "nprogress/nprogress.css";
app.mount("#app");
